package com.ruoyi.sys.personnel.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@TableName("tb_organization_management")
@Data
public class TbOrganizationManagement {
    @TableId(value = "om_id",type = IdType.AUTO)
    private Integer omId;
    @TableField("om_name")
    private String omName;
    @TableField("om_state")
    private Integer omState;
    @TableField("om_date")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date omDate;
    @TableField("om_phone")
    private String omPhone;
    @TableField("om_type")
    private Integer omType;
    @TableField("om_boss")
    private String omBoss;
    @TableField("u_id")
    private Integer uId;

    private User user;
}
